package com.tedu.day02.oop;

/**
 *
 */
//final class Eunuch()

class People{
    public /*final*/ void test(){
        System.out.println("父亲--重写");
    }
}
class Man extends People{
    public void test(){
        System.out.println("子类--重载");
    }
}
class WoMan extends Man{

}
public class Final关键字 {
    public static void main(String[] args){
        Man man=new Man();
        man.test();
        man.test(1,1);
    }
}
